<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<meta charset="UTF-8">
	<meta name="author" content="wangbo">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		class Dog {
			name = "张三";
			age = 10;
			show(){
				console.log("打印了");
			}
		}
		let dd = new Dog("旺财", 3)
		console.log(dd,typeof Dog);
		//  报错,class 不许调用
		// let c = Dog("旺财", 3)
	</script>
</body>

</html>